import Vue from 'vue'
import App from './App'

// import pageHead from './components/page-head.vue'
// import pageFoot from './components/page-foot.vue'
import uniPopup from '@/components/uni-popup/uni-popup.vue'

import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue'

Vue.config.productionTip = false

Vue.prototype.apiUrl = 'https://exam.lysxrj.com/'
Vue.prototype.token = ''
Vue.prototype.msg = ''

App.mpType = 'app'

const app = new Vue({
    ...App
})

Vue.prototype.togglePopup = function(type){
  this.type = type;
}

// Vue.component('page-head', pageHead)
// Vue.component('page-foot', pageFoot)
Vue.component('uni-nav-bar', uniNavBar)
Vue.component('uni-popup', uniPopup)

app.$mount()
